package com.zpc.myvideoserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 视频收藏表
 * </p>
 *
 * @author zpc
 * @since 2023/11/03
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("collect")
@ApiModel(value = "Collect对象", description = "视频收藏表")
public class Collect {

    @ApiModelProperty("收藏id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("video id")
    @TableField("video_id")
    private Integer videoId;

    @ApiModelProperty("user id")
    @TableField("user_id")
    private Integer userId;
}
